set base_dir=%~dp0

cd %base_dir%

%~d0

del .\js\seq-qunee-debug.js /Q
del .\js\seq-qunee-min.js /Q

type .\SQunee.js>>.\js\seq-qunee-debug.js

for /r .\net %%i in (*.js) do type %%i>>.\js\seq-qunee-debug.js
for /r .\meta %%i in (*.js) do type %%i>>.\js\seq-qunee-debug.js
for /r .\layout %%i in (*.js) do type %%i>>.\js\seq-qunee-debug.js

java -jar %JAVA_HOME%\yuicompressor-2.4.8.jar --type js --charset utf-8 -o ./js/seq-qunee-min.js ./js/seq-qunee-debug.js
